package com.example.whatrubbish.service;

import com.example.whatrubbish.model.Commodity;
import com.example.whatrubbish.utils.DemoException;
import com.example.whatrubbish.vo.CommodityDetailVO;
import com.example.whatrubbish.vo.PageBean;

public interface CommodityService {
    PageBean<CommodityDetailVO> findCommodityWithPage(String title, Integer status, Integer pageIndex, Integer pageSize);

    int insert(CommodityDetailVO record);

    int update(CommodityDetailVO record);

    int update(Commodity record);

    int delete(Long id) throws DemoException;

    CommodityDetailVO selectByPrimaryKey(Long id);
}
